----------------------------
-- Simplistic Street
-- by Arran
--
-- Project Started - October 20, 2009
-- Completion -None
----------------------------

local Rules = {
	"_______________________________________________________________________",
	"Gerenal Rules:", 
	"_______________________________________________________________________",
	"1.We use the NLR (New Life Rule) on the server, the new life rule means that you can not return",
	"to the area of death", 
	"straight after you have been killed from it. Abide by it.",
	"2.No RDM (Random Death Matching) is allowed on the server, meaning no mass killings for no", 
	"reason",
	"3.No prop-blocking, prop-surfing or prop-pushing is allowed",
	"4.OOC (Out Of Character) chat is used for non Rp talk, for anything else use the Rp chat",	
	"5.This server is a RolePlaying server, treat it like one.",
	"6.No building in spawn, building in spawn will lead to an instant removal",
	"Building Rules:",
	"1.To have a legal base you must have to have no crouching tunnels from which you can shoot",
	"players heads when they move.",
	"2.No exceedingly long mazes.(Dealt with by the admins opinion online)",
	"3.Mazes may have no more than 25 props to make up the maze.",
	"4.You must have a keypad near a door.",
	"5.No more than 2 keypads per door.",
	"6.No more than 3 doors to gain entry to a base.",
	"7.Doors to a base must be clear and accessible. (I.E Not prop blocked)",
	"8.Props must not go through any walls, floors or ceilings that may interrupt others.",
	"9.Keypads must not be wired so that it is required for multiple keypads to be cracked",
	"simultaneously.",
	"10.No traps may be sprung so that you prop block an intruder in or out of your base.",
	"11.Any protection built must have a slit where bullets can easily pass through and a players",
	"head can easily be shot.",
	"12.Usage of any props to shield yourself from bullets whilst entering a base is forbidden and will",
	"be dealt with severely.",
	"_______________________________________________________________________",
	"Citizen Rules:",
	"_______________________________________________________________________",
	"1.As a citizen you are a citizen of Opacity, you live a normal life.",
	"2.As a citizen you have the rights to own a building and build, and store things.",
	"3.You can be searched by the police for illegal unwanted items.",
	"4.You can not raid as a citizen.",
	"5.You may own a handgun for self-defense.",
	"_______________________________________________________________________",
	"Gangster Rules:",
	"_______________________________________________________________________",
	"1.You are the lowest level of the crime",
	"2.You can raid as a gangster and your aim is to create chaos, not RDM.",
	"3.You can store illegal items and refuse to open up for police but expect to be raided by them.",
	"4.You are not immune to cop searches although you are not a citizen.",
	"5.You must listen to the Mob Boss as he controls the gangsters in Opacity.",
	"6. You can steal and do illegal actions, just dont get cuaght by the police.",
	"_______________________________________________________________________",
	"Mob Boss Rules:",
	"_______________________________________________________________________",
	"1.You control the gangsters of Opactiy.",
	"2.You sell drugs to people that pay up and keep the crime running.",
	"3.You are at the top of the of the crime chain, you command and control all crime.",
	"4.You can store illegal items, but expect to be targeted by the police.",
	"5.Build a base for all the gangsters and store illegal items if you wish.",
	"6.Write out and complete an agenda for the gangsters.",
	"_______________________________________________________________________",
	"Cop Rules:",
	"_______________________________________________________________________",
	"1.You have the power to arrest, but not random arrest.",
	"2.You are there for safety, help the local citizens and stop crime.",
	"3.Communicate with other officers to catch criminals.",
	"4.You must have a search warrent before entering a building to search.",
	"5.You can not search a base due to evidence which may have came through a wall, such as sparks.",
	"6.Work with the Mayor and protect him at all costs.",
	"Mayor Rules:",
	"1.You have the power to demote players from their jobs if those jobs are not completed to",
	"standard.",
	"2.Help the police but don't give out random warrants, if you see a reason for a warrant/want",
	"then do it, not just becuase an officer said so.",
	"3.Do not demote randomly there has to be a solid reason and at least 2 witnesses.",
	"4.Stay safe, so build a base and maybe get a few officers to protect you.",
	"5.If a gang members completes a hit (It was in their agenda to kill the Mayor) then you must",
	"switch jobs.",
	"6.Control the citiznes of Opacity and make sure everyone is happy.",
	"_______________________________________________________________________",
	"Doctor Rules:",
	"_______________________________________________________________________",
	"1.As a Doctor you are to heal the local citizens, you can do this at freee will or at a price.",
	"2.Sell shipments of water and medicine to the local people of opacity.",
	"3.If you are to seel any items you are to build some kind of store/shop to do so.",
	"4.If a player is willing to pay, heal them.",
	"_______________________________________________________________________",
	"IF YOU DO SEE PEOPLE ABUSING THE RULES, POST A BAN APPLICATION ON THE FORUMS AT:",
	"WWW.OPACITYSERVERS.CO.UK",
	"_______________________________________________________________________"
}

local Staff = {
	"_______________________________________________________________________",
	"Owners:",
	"_______________________________________________________________________",
	"Arran",
	"Jammie Dodger",
	"",
	
	"_______________________________________________________________________",
	"Super Admins:",
	"_______________________________________________________________________",
	"Insert here",
	"",
	
	"_______________________________________________________________________",
	"Administrators:",
	"_______________________________________________________________________",
	"Insert here",
	"",
	
	"_______________________________________________________________________",
	"Moderators:",
	"_______________________________________________________________________",
	"Insert here",
	""

}

local Donate = {
	"_______________________________________________________________________",
	"VIP Benefits:",
	"_______________________________________________________________________",
	"", //used for a new line
	"AFK Kick Immunity",
	"25% Bonus Salary",
	"Physic Gun and Tool Gun",
	"Ability to spawn props",
	"",
	"VIP only costs a small fee of $15, donate today to recieve your benefits.",
	"Fund the server today, play again another."
}

local Guide = {
	"_______________________________________________________________________",
	"Starters Guide:",
	"_______________________________________________________________________"
}

local Commands = {
	"_______________________________________________________________________",
	"General Commands:",
	"_______________________________________________________________________"
}

function help_menu()

local HelpFrame = vgui.Create( "DFrame" )
	HelpFrame:SetSize(ScrW() /1.5, ScrH() /1.5)
	HelpFrame:SetPos((ScrW() /2) -(HelpFrame:GetWide() / 2), ScrH() /2 - (HelpFrame:GetTall() /2))
	HelpFrame:SetTitle( "Help me!" )
	HelpFrame:SetDraggable( false )
	HelpFrame:ShowCloseButton( true )
	HelpFrame:MakePopup()

local HelpSheet = vgui.Create( "DPropertySheet", HelpFrame )
	HelpSheet:SetPos( 10, 32 )
	HelpSheet:SetSize( HelpFrame:GetWide() - 20, HelpFrame:GetTall() - 52 )

local RuleList = vgui.Create( "DPanelList", HelpSheet )
	RuleList:SetPos( 10, 32 )
	RuleList:SetSize( HelpFrame:GetWide() - 20, HelpFrame:GetTall() - 42 )
	RuleList:SetSpacing( 5 )
	RuleList:EnableHorizontal( false )
	RuleList:EnableVerticalScrollbar( true )

	for k, v in pairs( Rules ) do 
		local RuleLabel = vgui.Create( "DLabel", RuleList )
		RuleLabel:SetText( v )
		RuleLabel:SizeToContents()
		RuleList:AddItem( RuleLabel )
	end
	
local StaffList = vgui.Create( "DPanelList", HelpSheet )
	StaffList:SetPos( 10, 32 )
	StaffList:SetSize( HelpFrame:GetWide() - 20, HelpFrame:GetTall() - 42 )
	StaffList:SetSpacing( 5 )
	StaffList:EnableHorizontal( false )
	StaffList:EnableVerticalScrollbar( true )

	for k, v in pairs( Staff ) do 
		local StaffLabel = vgui.Create( "DLabel", StaffList )
		StaffLabel:SetText( v )
		StaffLabel:SizeToContents()
		StaffList:AddItem( StaffLabel )
	end
	
local Forum = vgui.Create( "HTML" )
	Forum:SetPos( 10, 32 )
	Forum:SetSize( HelpFrame:GetWide() - 20, HelpFrame:GetTall() - 42 )
	Forum:OpenURL( "http://www.opacityservers.co.uk" )

local DonateList = vgui.Create( "DPanelList", HelpSheet )
	DonateList:SetPos( 10, 32 )
	DonateList:SetSize( HelpFrame:GetWide() - 20, HelpFrame:GetTall() - 42 )
	DonateList:SetSpacing( 5 )
	DonateList:EnableHorizontal( false )
	DonateList:EnableVerticalScrollbar( true )

	for k, v in pairs( Donate ) do 
		local DonateLabel = vgui.Create( "DLabel", DonateList )
		DonateLabel:SetText( v )
		DonateLabel:SizeToContents()
		DonateList:AddItem( DonateLabel )
	end
	
local StartersList = vgui.Create( "DPanelList", HelpSheet )
	StartersList:SetPos( 10, 32 )
	StartersList:SetSize( HelpFrame:GetWide() - 20, HelpFrame:GetTall() - 42 )
	StartersList:SetSpacing( 5 )
	StartersList:EnableHorizontal( false )
	StartersList:EnableVerticalScrollbar( true )

	for k, v in pairs( Guide ) do 
		local GuideLabel = vgui.Create( "DLabel", StartersList )
		GuideLabel:SetText( v )
		GuideLabel:SizeToContents()
		StartersList:AddItem( GuideLabel )
	end
	
local CommandList = vgui.Create( "DPanelList", HelpSheet )
	CommandList:SetPos( 10, 32 )
	CommandList:SetSize( HelpFrame:GetWide() - 20, HelpFrame:GetTall() - 42 )
	CommandList:SetSpacing( 5 )
	CommandList:EnableHorizontal( false )
	CommandList:EnableVerticalScrollbar( true )

	for k, v in pairs( Commands ) do 
		local CommandLabel = vgui.Create( "DLabel", CommandList )
		CommandLabel:SetText( v )
		CommandLabel:SizeToContents()
		CommandList:AddItem( CommandLabel )
	end
	
	HelpSheet:AddSheet( "Rules", RuleList, "gui/silkicons/exclamation", false, false, nil )
	HelpSheet:AddSheet( "Starters Guide", StartersList, "gui/silkicons/help", false, false, nil )
	HelpSheet:AddSheet( "Commands", CommandList, "gui/silkicons/wrench", false, false, nil )
	HelpSheet:AddSheet( "Staff", StaffList, "gui/silkicons/star", false, false, nil )
	HelpSheet:AddSheet( "Donate", DonateList, "gui/silkicons/heart", false, false, nil )
	HelpSheet:AddSheet( "Forums", Forum, "gui/silkicons/world", false, false, nil )

end

usermessage.Hook( "Help_Menu", help_menu )